from django.conf.urls.defaults import *
import os

ROOT_PATH = os.path.dirname(__file__)

urlpatterns = patterns('',
	(r"^$", "titiaccount.app.views.index"),
	url(r'^user/', include('titiaccount.app.user.urls')),
	url(r'^account/', include('titiaccount.app.account.urls')),

	(r"^css/(?P<path>.*)$", "django.views.static.serve", {"document_root": ROOT_PATH + "/static/css"}),
	(r"^js/(?P<path>.*)$", "django.views.static.serve", {"document_root": ROOT_PATH + "/static/js"}),
	(r"^img/(?P<path>.*)$", "django.views.static.serve", {"document_root": ROOT_PATH + "/static/img"}),
	(r"^(?P<path>.*)$", "django.views.static.serve", {"document_root": ROOT_PATH + "/static"}),
)

